<?php

namespace Managers;

class Article extends \Lib\Model\DoctrineManager{

    
    public function getAllArticles() {
        
        $em = $this->getEntityManager();
        $qb = $em->createQueryBuilder()
                ->select('a')
                ->from('Entities\Article', 'a');

        $result = $qb->getQuery()->getResult();
        return $result;
        
    }
    
}